package team.jaman.autosell.service;

import team.jaman.autosell.entity.Logger;
import team.jaman.autosell.entity.Manager;
import team.jaman.autosell.tools.CommonData;
import team.jaman.autosell.tools.PageData;


public interface ManagerService {
	/**
	 * 根据账号密码查询管理员
	 */
	public Manager loginManager(Manager record,Logger logger);
	/**
	 * 添加管理员
	 * @param record 添加管理员对象
	 * @return
	 */
	public CommonData addManager(Manager record,Logger logger);
	/**
	 * 查询管理员
	 * @param record
	 * @return
	 */
	public PageData<Manager> selectManager(int page, int limit, String keyword);
	/**
	 * 修改管理员
	 */
	public CommonData updateByPrimaryKeySelective(Manager record,Logger logger);
	/**
	 * 查询管理员
	 * @param record
	 * @return
	 */
	public Manager selectManagerById(int managerId);
}
